package com.nexus.service.sys.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nexus.core.service.mapper.IBaseMapper;
import com.nexus.core.sys.dto.SysTenantOrgDTO;
import com.nexus.core.sys.entity.SysTenantOrg;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 职务MAPPER接口
 *
 * @author 路正宁
 * @version 2023-03-16
 */
@Mapper
public interface SysTenantOrgMapper extends IBaseMapper<SysTenantOrg> {

    /**
     * 根据id获取职务
     *
     * @param id
     * @return
     */
    SysTenantOrgDTO findById(String id);

    /**
     * 获取职务列表
     *
     * @param queryWrapper
     * @return
     */
    IPage<SysTenantOrgDTO> findList(Page<SysTenantOrgDTO> page, @Param(Constants.WRAPPER) QueryWrapper queryWrapper);

}
